<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @property int $id
 * @property string $images 封面
 * @property string $name 路线名称
 * @property-read mixed $images_text
 * @mixin \think\Model
 */
class Line extends Model
{
	protected $append = [
		'images_text'
	];
	
	function getImagesTextAttr($value,$data)
	{
		$value = $value ?? ($data['images'] ?? '');
		return $value?explode(',', $value):[];
	}
}
